import {request} from "@/network/request";

export function login(username, password) {
  return request({
    url: '/user/userLogin',
    method: 'post',
    params: {
      username,
      password
    }
  })
}

export function register(nickname, username, password, passwordCheck) {
  return request({
    url: '/user/insertUser',
    method: 'post',
    params: {
      nickname,
      username,
      password,
      passwordCheck
    }

  })
}

export function judgeUser(username) {
  return request({
    url: '/user/judgeUser',
    params: {
      username
    }
  })
}


